package com.gilgamesh.mall.sdk.bean.product;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.xml.internal.bind.v2.TODO;
import lombok.*;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 分类
 * @author peiyao
 * @date 2021-01-11 11:27:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@TableName("t_classfic")
public class ClassficEntity implements Serializable {

	private static final long serialVersionUID = 4799781710949323011L;
	/**
	 * 主键
	 */
	@TableId
	@TableField(value = "id",jdbcType = JdbcType.BIGINT)
	private Long id;
	/**
	 * 分类名
	 */
	@TableField(value = "classfic_name",jdbcType = JdbcType.VARCHAR)
	private String classficName;
	/**
	 * 级别
	 */
	@TableField(value = "level",jdbcType = JdbcType.TINYINT)
	private Byte level;
	/**
	 * 上级id
	 */
	@TableField(value = "superior_id",jdbcType = JdbcType.BIGINT)
	private Long superiorId;

	/**
	 * 创建时间
	 */
	@JsonFormat(timezone = "yyyy-MM-dd hh:mm:ss")
	@TableField(value = "create_time",jdbcType = JdbcType.DATETIMEOFFSET)
	private Date createTime;

	/**
	* 排序字段
	**/
	@TableField(value = "rank",jdbcType = JdbcType.TINYINT)
	private Byte rank;


}
